//
//  main.m
//  002-内存管理-property参数练习
//
//  Created by Jason on 15/9/21.
//  Copyright © 2015年 Jason. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Student.h"

int main(int argc, const char * argv[]) {
    
    @autoreleasepool {
        
        Person *p = [[Person alloc] init];
        
        Card *card = [[Card alloc] init];
        
        p.card = card;
        
        House *house = [[House alloc] init];
        
        p.house = house;
        
        Pig *pig = [[Pig alloc] init];
        
        p.pig = pig;
        
        [pig release];
        [house release];
        [card release];
        [p release];
        
        Student *s = [[Student alloc] init];
        s.house = house;
        
        
    
    }
    return 0;
}
